a12e7864acb87f75c5f7512ccff8156799e9660e,src/main/java/fr/minecraftforgefrance/updater/Updater.java,Updater,Updater,#String[]#,37
Before Change
File modpackInfo = new File(modPackDir, modpackName + ".json");
if(!modpackInfo.exists())
{
JOptionPane.showMessageDialog(null, Localization.LANG.getTranslation("err.erroredprofile"), Localization.LANG.getTranslation("misc.error"), JOptionPane.ERROR_MESSAGE);
return;
}
JdomParser jsonParser = new JdomParser();
JsonRootNode jsonProfileData;
try
{
jsonProfileData = jsonParser.parse(Files.newReader(modpackInfo, Charsets.UTF_8));
}
catch(InvalidSyntaxException e)
{
JOptionPane.showMessageDialog(null, Localization.LANG.getTranslation("err.erroredprofile"), Localization.LANG.getTranslation("misc.error"), JOptionPane.ERROR_MESSAGE);
throw Throwables.propagate(e);
}
catch(Exception e)
After Change
File modpackInfo = new File(modPackDir, modpackName + ".json");
if(!modpackInfo.exists())
{
JOptionPane.showMessageDialog(null, LANG.getTranslation("err.erroredprofile"), LANG.getTranslation("misc.error"), JOptionPane.ERROR_MESSAGE);
return;
}
JdomParser jsonParser = new JdomParser();
JsonRootNode jsonProfileData;
try
{
jsonProfileData = jsonParser.parse(Files.newReader(modpackInfo, Charsets.UTF_8));
}
catch(InvalidSyntaxException e)
{
JOptionPane.showMessageDialog(null, LANG.getTranslation("err.erroredprofile"), LANG.getTranslation("misc.error"), JOptionPane.ERROR_MESSAGE);
throw Throwables.propagate(e);
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null, LANG.getTranslation("err.erroredprofile"), LANG.getTranslation("misc.error"), JOptionPane.ERROR_MESSAGE);
throw Throwables.propagate(e);
}
RemoteInfoReader.instance = new RemoteInfoReader(jsonProfileData.getStringValue("remote"));